﻿namespace Nomo.UnityCoreModule.Nodes
{
    /// <summary>
    /// 界面信息。
    /// </summary>
    public readonly struct NodeInfo
    {
        /// <summary>
        /// 界面。
        /// </summary>
        public readonly Node Node;

        /// <summary>
        /// 资源包。
        /// </summary>
        public readonly UnityEngine.AssetBundle AssetBundle;

        /// <summary>
        /// 初始化 <see cref="NodeInfo"/> 结构的新实例。
        /// </summary>
        /// <param name="node">界面。</param>
        /// <param name="assetBundle">资源包。</param>
        public NodeInfo(Node node, UnityEngine.AssetBundle assetBundle)
        {
            Node        = node;
            AssetBundle = assetBundle;
        }
    }
}
